<?php

class qtype_preg_cross_tests_from_att_assoc
{

defined('NOMATCH') || define('NOMATCH', qtype_preg_matching_results::NO_MATCH_FOUND);


	//concatenated 3 brackets, 2 or and star metacharacter
	function data_for_test_assoc_3_brackets_2_or_star () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a|ab)(c|bcd)(d*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, 2 or and star metacharacter
	function data_for_test_assoc_3_brackets_2_or_star_1 () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a|ab)(bcd|c)(d*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, 2 or and star metacharacter
	function data_for_test_assoc_3_brackets_2_or_star_2 () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(ab|a)(c|bcd)(d*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, 2 or and star metacharacter
	function data_for_test_assoc_3_brackets_2_or_star_3 () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(ab|a)(bcd|c)(d*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, or and 2 star metacharacters
	function data_for_test_assoc_3_brackets_or_2_star_metacharacters () {
		$test1 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
						'length'=>array(0=>3,1=>0,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
						'length'=>array(0=>3,1=>1,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a*)(b|abc)(c*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, or and 2 star metacharacters
	function data_for_test_assoc_3_brackets_or_2_star_metacharacters_1 () {
		$test1 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
						'length'=>array(0=>3,1=>0,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
						'length'=>array(0=>3,1=>1,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a*)(abc|b)(c*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, or and 2 star metacharacters
	function data_for_test_assoc_3_brackets_or_2_star_metacharacters_2 () {
		$test1 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
						'length'=>array(0=>3,1=>0,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
						'length'=>array(0=>3,1=>1,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a*)(b|abc)(c*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, or and 2 star metacharacters
	function data_for_test_assoc_3_brackets_or_2_star_metacharacters_3 () {
		$test1 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>0,3=>3),
						'length'=>array(0=>3,1=>0,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abc',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>2),
						'length'=>array(0=>3,1=>1,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a*)(abc|b)(c*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, 2 or, 2 star, point metacharacters
	function data_for_test_assoc_concatenated_3_brackets_2_or_2_star_point () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a|ab)(c|bcd)(d|.*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, 2 or, 2 star, point metacharacters
	function data_for_test_assoc_concatenated_3_brackets_2_or_2_star_point_1 () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(a|ab)(bcd|c)(d|.*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, 2 or, 2 star, point metacharacters
	function data_for_test_assoc_concatenated_3_brackets_2_or_2_star_point_2 () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(ab|a)(c|bcd)(d|.*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
	//concatenated 3 brackets, 2 or, 2 star, point metacharacters
	function data_for_test_assoc_concatenated_3_brackets_2_or_2_star_point_3 () {
		$test1 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>1,3=>4),
						'length'=>array(0=>4,1=>1,2=>3,3=>0),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		$test2 = array( 'str'=>'abcd',
						'is_match'=>true,
						'full'=>true,
						'index_first'=>array(0=>0,1=>0,2=>2,3=>3),
						'length'=>array(0=>4,1=>2,2=>1,3=>1),
						'left'=>array(0),
						'next'=>qtype_preg_matching_results::UNKNOWN_NEXT_CHARACTER,
						'tags'=>array(qtype_preg_cross_tester::TAG_FROM_AT_AND_T));
		return array('regex'=>'(ab|a)(bcd|c)(d|.*)',
					 'tests'=>array($test1, $test2));	//test1 - left assoc, test2 - rigth assoc
	}
}
?>